package com.cloud.cmt.usermanage.service.impl;

import com.cloud.cmt.usermanage.entity.UserInfo;
import com.cloud.cmt.usermanage.service.UserInfoRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * User: wcy
 * Date: 2017/9/5
 * Time: 17:36
 */
@Service("userService")
public class UserServiceImpl {

    @Resource
    UserInfoRepository userInfoRepository;

    public List<UserInfo> findByName(String name) {
        return userInfoRepository.findByUserName(name);
    }

}